<?php
	// No direct access
	defined('_JEXEC') or die;
    jimport( 'joomla.application.component.view');
    class VolunteerViewSearchvolunteer extends JView
    {
		function display($tpl = null)
		{
			$model = $this->getModel('volunteer'); //get default model (volunteer)
			
			$results = $model->searchVolunteer(JRequest::getVar('searchname'));
			
			// var_dump($results);
			
			$this->assignRef( 'results', $results );
			
			// $this->assignRef( 'searchkeyword', JRequest::getVar('searchkeyword') );
			// $this->assignRef( 'industries', $model->getIndustries() );
									
			// $app = JFactory::getApplication();
			// $data = $app->getUserState('volunteer.searchvolunteer.form.data');
			// $this->assign( 'searchname', searchname);
		
			parent::display($tpl); //display defaul template
		}
    }